import { ref } from 'vue'
import router from '@/router'
/**
 * 根据路由名称加载
 * @returns
 */
export const component = () => {
  const template = ref('tinymce')
  const getComponent = async () => {
    // test
    const routerName = router.currentRoute.value.name
    template.value = 'tinymce'
  }
  return {
    template,
    getComponent
  }
}
